<!-- ##TODO this should be indexed by submitter name, (but id first), and show all events for that submitter -->
<p>
  <b>Submitter:</b>
  <%= link_to @events_submitter.submitter.name, @events_submitter.submitter if @events_submitter.submitter%>
  &nbsp; | &nbsp;
  <b>Accepted:</b>
  <%=h @events_submitter.accepted == nil ? "No" : "Yes" %>
  &nbsp; | &nbsp;
  <b>Rejected:</b>
  <%=h @events_submitter.rejected == nil ? "No" : "Yes" %>
</p>
 
<p>
  <b>Events:</b>
  <%= link_to @events_submitter.event.name, @events_submitter.event  %>   <!-- add event details -->

<!-- % for score_submission in @existing_submissions %-->
  <!-- % submitter = score_submission[:submitter] %-->
  <% submitter = @events_submitter.submitter %>

  <h2>Event Submission by <%=h submitter.name %> (as "<%=@user_name%>") </h2>
  <!-- % for event in score_submission[:event] % -->
  <table border="1">            <!-- ##TODO: CSS --> 
    <% first = true %>
    <% event = @events_submitter.event %>
    <%= render :partial => "show_event", :object => event, :locals => { :first => first } %>
  </table>
  <!-- % end % -->
<!-- % end % -->
</p>
<p>
</p>

<%= link_to 'Edit', edit_events_submitter_path(@events_submitter) %> |
<%= link_to 'Back', events_submitters_path %>

<!-- vi:ts=2:et:sw=2:
-->
